package cn.team.service.impl;

import cn.team.entity.Friend;
import cn.team.mapper.FriendMapper;
import cn.team.service.FriendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class FriendServiceImpl implements FriendService {
    @Resource
    FriendMapper friendMapper;
    @Override
    public ArrayList<Friend> getAllFriends(int hostId) {
        return friendMapper.getAllFriends(hostId);
    }
}
